package com.stone.design.patterns.decorator;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 4/20/18 21:43
 * @email redsstone@163.com
 */
public class Mocha extends CondimentDecorator{

    private Beverage mBeverage;

    public Mocha(Beverage beverage) {
        mBeverage = beverage;
    }

    @Override
    public String getDescription() {
        return mBeverage.getDescription() + "Mocha";
    }

    @Override
    public double coat() {
        return 8.9 + mBeverage.coat();
    }
}
